/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package BO;

import BO.Iter.GiaoVuBO;
import DAO.Iter.GiaoVuDAO;
import TableModel.Giaovu;
import java.util.List;


/**
 *
 * @author vt
 */
public class GiaoVuBOImpl implements GiaoVuBO {
          private GiaoVuDAO gvuDao;

    public GiaoVuDAO getGvuDao() {
        return gvuDao;
    }

    public void setGvuDao(GiaoVuDAO gvuDao) {
        this.gvuDao = gvuDao;
    }
    @Override
    public List<Giaovu> findAllGiaoVu() {
        return gvuDao.findAllGiaoVu();
    }

    @Override
    public Giaovu findGiaoVu(String id) {
       return gvuDao.findGiaoVu(id);
    }

    @Override
    public Giaovu findGiaoVu(String userName, String paawrod) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    @Override
    public void update(Giaovu id) {
        gvuDao.editGiaovu(id);
    }

    @Override
    public void add(Giaovu id) {
        gvuDao.addGiaoVu(id);
    }

    @Override
    public void delete(Giaovu id) {
        gvuDao.deleteGiaovu(id);
    }
    
}
